package com.hsjk.szwj.module.train.controller.app.vo.order;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Schema(description = "应用端 - 订单列表 Response VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderListRespVO {
    @Schema(description = "id",
            requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long id;

    @Schema(description = "订单编号",
            requiredMode = Schema.RequiredMode.REQUIRED, example = "T2321232323123")
    private String orderNo;

    @Schema(description = "购买数量",
            requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer amount;

    @Schema(description = "订单状态; 1-待支付 2-已支付 3-已取消",
            requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer status;

    @Schema(description = "支付时间",
            requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private LocalDateTime payTime;

    @Schema(description = "订单价格;单位：分",
            requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer orderPrice;

    @Schema(description = "创建时间",
            requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private LocalDateTime createTime;

    @Schema(description = "sku 名称",
            requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private String skuName;

    @Schema(description = "图片地址",
            requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private String skuPicUrl;
}
